class AddItemAlliancesRelationIdAndSourceSite < ActiveRecord::Migration
  def self.up
    ActiveRecord::Base.connection.execute("ALTER TABLE item_alliances ADD COLUMN relation_id bigint(4) after item_id")
    ActiveRecord::Base.connection.execute("ALTER TABLE item_alliances ADD COLUMN source_site varchar(100) after check_time")
  end

  def self.down
    remove_column :item_alliances, :relation_id
    remove_column :item_alliances, :source_site
  end
end
